import request from "@/utils/request.js";

export const userLoginService = (user) => request.post('/login', user);
export const getUsersService = (query) => request.get('/users',{params:query});
export const addUserService = (user) => request.post('/users', user);
export const updateStatusService = (id, state) => request.put(`/users/${id}/state/${state}`);
export const deleteUserService = (id) => request.delete(`/users/${id}`);
export const updateUserService =({id,email,mobile})=>request.put(`/users/${id}`,{email,mobile})
export const getUserByIdService = (id) => request.get(`/users/${id}`);
